<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:59:"E:\WWW\waimai/app/delivery/index\view\order\statistics.html";i:1502351649;s:56:"E:\WWW\waimai/app/delivery/index\view\template\base.html";i:1502335904;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>外卖</title>
    <link rel="stylesheet" href="__STATIC__/css/mui.min.css">
    <link rel="stylesheet" href="__STATIC__/css/ks.css">
    
    <script>
        var require_path = "__STATIC__/app";
    </script>
    <script src="__STATIC__/app/require.js"></script>
    <script src="__STATIC__/app/require.config.js"></script>
    <script src="__STATIC__/app/plugin/jquery-3.2.1.min.js"></script>
    <script src="__STATIC__/app/plugin/mui/mui.min.js"></script>
    
</head>
<body>



<script src="__STATIC__/app/plugin/mui/mui.picker.min.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/mui.picker.min.css"/>
<header class="header">
    <div>
        <a class="goback"><i class="iconfont icon-zuoyoujiantou-copy-copy-copy"></i></a>
        订单统计
    </div>
</header>
<footer class="footer">
    <ul>
        <li>
            <a href="<?php echo url('order/index'); ?>">
                <i class="iconfont icon-dingdantianxiexianxing"></i>
                <p>订单列表</p>
            </a>
        </li>
        <li class="active">
            <a href="javascript:; ">
                <i class="iconfont icon-tongji"></i>
                <p>订单统计</p>
            </a>
        </li>
    </ul>
</footer>
<div class="pages" id="pages">
    <template>
        <div class="list-form other">
            <ul>
                <li>
                    <div @tap="bg_time_met()" id="bg_time">
                        开始时间：{{bg_time}}
                    </div>
                    <div @tap="end_time_met()" id="end_time">
                        结束时间：{{end_time}}
                    </div>
                </li>
            </ul>
        </div>
        <div class="list-form other has-b">
            <ul class="title-gray">
                <li>订单系统</li>
            </ul>
            <ul>
                <li>
                    配送中订单总额
                    <span class="pull-right color-primary">￥{{ps_money}}</span>
                </li>
                <li>
                    配送中订单数量
                    <span class="pull-right color-primary">{{ps_count}}</span>
                </li>
                <li>
                    已收货订单总额
                    <span class="pull-right color-primary">￥{{ups_money}}</span>
                </li>
                <li>
                    已收货订单数量
                    <span class="pull-right color-primary">{{ups_count}}</span>
                </li>
            </ul>
        </div>
    </template>
</div>


</body>
<script>
    if(document.querySelector('.goback')!=null){
        document.querySelector('.goback').addEventListener('tap', function () {
            history.back();
        })
    }

</script>

<script>
    var list_url = "<?php echo url('index/Order/index'); ?>";
    var detail_url = "<?php echo url('index/Order/detail'); ?>";
    var select_url = "<?php echo url('index/Order/statistics'); ?>";
    var bg_time = "<?php echo $data['min_time']; ?>";
    var end_time = "<?php echo $data['max_time']; ?>";
    var ps_money = "<?php echo $data['ps_money']; ?>";
    var ps_count = "<?php echo $data['ps_count']; ?>";
    var ups_money = "<?php echo $data['ups_money']; ?>";
    var ups_count = "<?php echo $data['ups_count']; ?>";
    require(['index/statistics']);
</script>

</html>